package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SeckillOrderMapper;
import com.ruoyi.system.domain.SeckillOrder;
import com.ruoyi.system.service.ISeckillOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2025-10-09
 */
@Service
public class SeckillOrderServiceImpl extends ServiceImpl<SeckillOrderMapper, SeckillOrder> implements ISeckillOrderService {
    @Autowired
    private SeckillOrderMapper seckillOrderMapper;


    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SeckillOrder selectSeckillOrderById(Long id) {
        return seckillOrderMapper.selectSeckillOrderById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param seckillOrder 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SeckillOrder> selectSeckillOrderList(SeckillOrder seckillOrder) {
        return seckillOrderMapper.selectSeckillOrderList(seckillOrder);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param seckillOrder 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSeckillOrder(SeckillOrder seckillOrder) {
            return seckillOrderMapper.insertSeckillOrder(seckillOrder);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param seckillOrder 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSeckillOrder(SeckillOrder seckillOrder) {
        return seckillOrderMapper.updateSeckillOrder(seckillOrder);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSeckillOrderByIds(Long[] ids) {
        return seckillOrderMapper.deleteSeckillOrderByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSeckillOrderById(Long id) {
        return seckillOrderMapper.deleteSeckillOrderById(id);
    }
}
